﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WxSDK.Model
{
    [WxPetaPoco.TableName("wx_replay")]
    [WxPetaPoco.PrimaryKey("Id")]
    public class wx_replay
    {
        #region Model
        private int _id;
        private int _memberid;
        private int _repaytype;
        private int _msgtype;
        private string _msgkey;
        private string _msgcont;
        private int _islock = 1;
        private int _isstudy = 0;
        private string _adduser;
        private DateTime _addtime = DateTime.Now;
        private int _rank = 1;
        private int _role = 0; 
        /// <summary>
        /// 自动回复设置
        /// </summary>
        public int Id
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int MemberId
        {
            set { _memberid = value; }
            get { return _memberid; }
        }
        /// <summary>
        /// 回复类型   1文字回复   2关键字回复  3图片回复  4语音回复 5图文回复
        /// </summary>
        public int RepayType
        {
            set { _repaytype = value; }
            get { return _repaytype; }
        }
        /// <summary>
        /// 回复消息的类型  1文字回复   2关键字回复  3图片回复  4语音回复 5图文回复    每个类型  对应的回复消息不同
        /// </summary>
        public int MsgType
        {
            set { _msgtype = value; }
            get { return _msgtype; }
        }
        /// <summary>
        /// 触发关键字
        /// </summary>
        public string MsgKey
        {
            set { _msgkey = value; }
            get { return _msgkey; }
        }
        /// <summary>
        /// 回复内容
        /// </summary>
        public string MsgCont
        {
            set { _msgcont = value; }
            get { return _msgcont; }
        }
        /// <summary>
        /// 是否锁定
        /// </summary>
        public int IsLock
        {
            set { _islock = value; }
            get { return _islock; }
        }
        /// <summary>
        /// 是否学习功能进来的
        /// </summary>
        public int IsStudy
        {
            set { _isstudy = value; }
            get { return _isstudy; }
        }
        /// <summary>
        /// 学习进来的openid
        /// </summary>
        public string AddUser
        {
            set { _adduser = value; }
            get { return _adduser; }
        }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime AddTime
        {
            set { _addtime = value; }
            get { return _addtime; }
        }
        /// <summary>
        /// 当前消息权重
        /// </summary>
        public int Rank
        {
            set { _rank = value; }
            get { return _rank; }
        }
        /// <summary>
        /// 默认0模糊匹配 1为完全匹配
        /// </summary>
        public int Role
        {
            set { _role = value; }
            get { return _role; }
        }
        #endregion Model

    }
    /// <summary>
    /// 回复类型   1文字回复  2图片回复  3语音回复 4视频回复 5图文回复
    /// </summary>
    public enum ReplayTypes
    {
        文字消息 = 1,
        图片消息 = 2,
        语音消息 = 3,
        视频消息 = 4,
        图文消息 = 5
    }
}
